<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Mainpage extends CI_Controller {

	public function mainpages()
	{
		if(!$this->session->userdata('logged_in'))
		{
			redirect(site_url('login'),'refresh');
		}
		$this->load->view('mainpage');
	}
}

